let exec = require('child_process').exec

let exe = function(path) {
    return new Promise(function (resolve) {
        exec('python ' + __dirname + '/pyzip/zip_del.py  '+ path,function(error,stdout,stderr){
            if(error) {
                console.error('stderr : '+stderr);
            }
            stdout.indexOf('error') === -1 ? resolve(stdout) : console.error(stdout) 
        })
    })
}
exports.exe = exe